{extend name="layout_modal" /}
{block name="css"}
<link rel="stylesheet" href="{$statics}plugins/select2/select2.css">
<link href="{$statics}plugins/um/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
{/block}
{block name="script"}
<script src="{$statics}plugins/select2/select2.full.min.js"></script>
<script type="text/javascript" src="{$statics}plugins/um/third-party/template.min.js"></script>
<script type="text/javascript" charset="utf-8" src="{$statics}plugins/um/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="{$statics}plugins/um/umeditor.min.js"></script>
<script type="text/javascript" src="{$statics}plugins/um/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
  var um = UM.getEditor('myEditor',{initialFrameWidth:null});
  var um1 = UM.getEditor('myEditor1',{initialFrameWidth:null});
  var um2 = UM.getEditor('myEditor2',{initialFrameWidth:null});
</script>
{/block}
{block name="content"}
<section class="content" style="padding-top:0px;">
    <div class="row">
        <div class="box">
            <form role="form" action="{:url('data_save')}">
                <div class="box-body">
                    <div class="form-group">
                        <label for="exampleInputEmail1">商品名称</label>
                        <input type="text" class="form-control" placeholder="商品名称" name="title">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">商品分类</label>
                        <select class="form-control" name="catid">
                            <option value="">请选择</option>
                            {volist name=":get_model_func('GoodsCate','list_data',[])" id="v"}
                                <option value="{$v.id}">{$v.title}</option>
                            {/volist}
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">商品图片</label>
                        <div class="input-group input-group-sm">
                            <input type="text" class="form-control" name="thumb" id="thumb_text">
                            <span class="input-group-btn">
                                <input id="thumb" class="upload_picker" type="file" btnTxt="上传图片">
                            </span>
                        </div>
                        <div id="queue_thumb"></div>
                    </div>
                  
                    <div class="form-group">
                        <label for="exampleInputEmail1">商品价格</label>
                        <input type="text" class="form-control" placeholder="商品价格" name="price">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">会员价格</label>
                        <input type="text" class="form-control" placeholder="会员价格" name="vip_price">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">简介</label>
                        <input type="text" class="form-control" placeholder="简介" name="description">
                    </div>
                    
                     <div class="form-group">
                        <label for="exampleInputEmail1">图文介绍</label>
                        <textarea id="myEditor" name="content" style="width:100%;height:240px;"></textarea>
                    </div> <div class="form-group">
                        <label for="exampleInputEmail1">规格</label>
                        <textarea id="myEditor1" name="guige" style="width:100%;height:240px;"></textarea>
                    </div> <div class="form-group">
                        <label for="exampleInputEmail1">包装售后</label>
                        <textarea id="myEditor2" name="package" style="width:100%;height:240px;"></textarea>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">状态</label>
                        <input type="radio" name="status" value="1" style="margin-left: 15px;" checked> 开启
                        <input type="radio" name="status" value="0" style="margin-left: 15px;"> 关闭
                    </div>
                     
                </div>
            </form>
        </div>
    </div>
</section>
{/block}